package updown.domain;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>Title: com.damai.downupservice.domain </p>
 * <p>Description:updown: -  </p>
 *
 * @Author:jiangkaixin
 * @Date:2021/11/6
 * @Version: 1.0
 */
@Data
public class ServiceMapDto {
    private String serviceName;
    private String serverHostList;
    private String jarVersionInfo;
    private String lastRestartTime;

    public ServiceMapDto(ServiceInfo service) {
        this.serviceName = service.getServiceName();
        this.serverHostList = service.getServerList();
        this.jarVersionInfo = service.getCurrentVersion();
        this.lastRestartTime = service.getLastRestartTime();
    }

    public ServiceMapDto() {
    }
    private List<DownUpScheduleWrapper> schedules = new ArrayList<>();
}
